<?php
# 引入SDK模块
require_once './sdk/opanapi.php';
require_once './sdk/webhook.php';
require_once './sdk/logger.php';

# 设置Token并开启实例
sdk::init("your_token_here");
data::init();

if (data::$event_type == "message.receive.normal") {
    if (data::$content == "ping") {
        send.text(data::$chat_id, data::$chat_type, "pong");
        send.md(data::$chat_id, data::$chat_type, "# pong");
        send.html(data::$chat_id, data::$chat_type, "<h1>你好</h1>");
    }
}
